home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part I.srd / Part I.srd.rsrc / PICT_56.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  125KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | door | earth | plant | reckoner | sky | tree | windowpane
OCR: I-52 Mops Tutorial n1 n2 boolean Leaves TRUE on the stack if nl is greater than or n2 otherwise leaves FALSE All the math in these comparison operations should be familiar to you Remember that these op erations, like the simple arithmetic ones, are set up postfix notation. To remember which der to put numbers on the stack simply reconstruct in your mind how the formula look T algebraic notation For example to puy out if n1 greater than n2 the algebraic test would be: In Mops you simply move the operation sign to the right But in thi case, Mops is testing the validity of the statement While the is taken from the stack the statement true then TRUE flag goes FALSE flag goes there Then an IF THEN or TF THEN ELSE deci si .on can number in ques ion Nested decisions It is also possible to have mo ...